package hc.bre.cmn;

public interface IListOption extends IId {
	public int getId();

	public void setId(int id);

	public String getCode();

	public void setCode(String code);

	public String getName();

	public void setName(String name);

	static String declarationOfOption() {
		StringBuilder sb = new StringBuilder();
		sb.append("\n").append("int ").append("id;");
		sb.append("\n").append("String ").append("code;");
		sb.append("\n").append("String ").append("name;");
		sb.append("\n");
		return sb.toString();
	}
	
	static String assignmentFromMap(String mapName) {
		StringBuilder sb = new StringBuilder();
		sb.append("\n").append("id = ").append(mapName).append("['id'];");
		sb.append("\n").append("code = ").append(mapName).append("['code'];");
		sb.append("\n").append("name = ").append(mapName).append("['name'];");
		sb.append("\n");
		return sb.toString();
	}
}
